<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@include file="/public/environment.jspf"%>
<!-- 当前的页面不进行设置缓存 -->
<% response.setHeader("cache-control", "no-store"); %>
</head>
<body>
	<c:if test="${empty sessionScope.forder.sorderList}">
		<!-- 如果购物项为空,则跳转到首页 -->
		<c:redirect url="/index.jsp"></c:redirect>
	</c:if>
	<div class="wrapper">
		<jsp:include page="/include/header.jsp"></jsp:include>
		<!-- 头部结束 -->

		<!-- 导航栏 -->
		<jsp:include page="/include/navigater.jsp"></jsp:include>
		<!--导航栏结束-->
		
		<div class="section_container">
			<!-- 购物车 -->
			<ul class="breadcrumb">
				<li><a href="#">加入购物车</a></li>
				<li class="active"><a href="#">确认订单信息</a></li>
				<li><a href="#">完成订单</a></li>
			</ul>
			<!-- 确认订单信息 -->
			<div class="check-stup">
				<!-- 商品确认 -->
				<div class="pro-check check ">
					<h1>确认订单信息</h1>
					<table class="data-table cart-table" cellpadding="0"
						cellspacing="0">
						<tr>
							<th class="align_center" width="10%">商品编号</th>
							<th class="align_left" width="35%" colspan="2">商品名称</th>
							<th class="align_center" width="10%">销售价格</th>
							<th class="align_center" width="20%">数量</th>
							<th class="align_center" width="15%">小计</th>
						</tr>
						<c:forEach items="${sessionScope.forder.sorderList}" var="sorder">
							<tr lang="${sorder.product.id}">
								<td class="align_center"><a href="#" class="edit">${sorder.product.id}</a>
								</td>
								<td width="80px"><img src="${shop}/image/${sorder.product.pic}" width="80"
									height="80" /></td>
								<td class="align_left"><a class="pr_name" href="#">${sorder.name}</a>
								</td>
								<td class="align_center vline">￥ ${sorder.price}</td>
								<td class="align_center vline">${sorder.number}</td>
								<td class="align_center vline">￥${sorder.price*sorder.number}</td>
							</tr>
						</c:forEach>
					</table>

					<div class="sum">
						<div class="fr">
							<span>总计：</span><b>￥${forder.total}</b>
						</div>
					</div>

				</div>
				<!-- 订购人确认 -->
				<form action="${shop}/forder_save.action" method="post">
					<div class="person-check check">
						<h1>订购人信息</h1>
						<div class="person-checkinner">
							<div>
								<label>配送姓名:</label> <input type="text" name="name" value="${sessionScope.user.name}"/>
							</div>
							<div>
								<label>联系方式:</label> <input type="text" name="phone" value="${sessionScope.user.phone}"/>
							</div>
							<div>
								<label>区域邮编:</label> <input type="text" name="post" value="1"/>
							</div>
							<div>
								<label>配送地址:</label> <input type="text" name="address" value="1"/>
							</div>
						</div>
					</div>
					<!-- 卖家留言 -->
					<div class="person-check check">
						<h1>卖家留言</h1>
						<textarea style="margin: 5px;" name="remark" cols="120" rows="2">输入留言信息</textarea>
						<div class="submit">
							<input type="submit" class="sub-logo fr"
								style="margin: 0px;padding: 0px; border: 0px;" value="确认无误,购买" />
						</div>
					</div>
				</form>
			</div>
		</div>
		<!-- 确认订单信息结束 -->
	</div>
</body>
</html>
